Bentley HAMMER CONNECT Edition Help

TRex Wizard

The TRex Wizard steps you through the process of automatically assigning elevations to specified nodes based on data from a Digital Elevation Model or a Digital Terrain Model.

TRex can load elevation data into model point features (nodes) from a variety of file types including both vector and raster files. To use raster files as the data source, the ArcGIS platform must be used. With a vector data source, it is possible to use any platform. Vector data must consist of either points with an elevation or contours with an elevation.

It is important to understand the resolution, projection, datum, units and accuracy of any source file that will be used to load elevation data for nodes.

In the United States, elevation data can be obtained at the USGS National Map Seamless Server. The vertical accuracy may only be +/- 7 to 15 m.

Step 1: File Selection

The elevation data source and features to which elevations will be assigned are specified in the File Selection dialog of the TRex wizard. Valid elevation data sources include:

  • Vector files such as DXF and SHP files
  • LandXML files
  • InRoads .dtm (Microstation platform only)
  • Geopack .tin (32-bit version only)
  • Bentley MX .fil
  • Bentley .dgn (Microstation platform only)

DXF files are able to contain both points and lines, therefore the user must indicate whether the node elevations should be built based on the points in the DXF, or based on the contour lines in the DXF.

Shapefiles are not allowed to contain mixed geometric data, so TRex can safely determine whether to build the elevation map based on either elevation point data or elevation contour lines. The Model Spot Elevation data source type uses existing spot elevation nodes in the model, which must already have correct elevation values assigned. Using these as the data source, TRex can determine the elevations for the other nodes in the model.

Bentley MX (.fil) files can contain multiple terrain models; you must select a single model to use as the elevation data source.

When running under the ArcGIS platform, additional raster data sources are also available for direct use in TRex, including TIN, Rasters(grid), USGS(DEM), and SDTS(DDF) files.

These data sources are often created in a specific spatial reference, meaning that the coordinates in the data source will be transformed to a real geographic location using this spatial reference. Care must be taken when laying out the model to ensure that the model coordinates, when transformed by the model's spatial reference (if applicable), will overlay the elevation data source in this 'global' coordinate system. If the model and elevation data source's data don't overlay each other, TRex will be unable to interpolate elevation data. GIS products such as Bentley Map and ArcGIS can be used to transform raster source data into a spatial reference that matches that of the model.

If you are unable to run TRex under ArcGIS (i.e. you are using stand-alone or a CAD platform), ArcGIS can generally be used to convert the raster data to a point shapefile that approximates the raster data source. Shapefiles can be always be used in TRex, regardless of the platform that TRex is running.



  • Data Source Type—This menu allows you to choose the type of file that contains the input data you will use.
  • File—This field displays the path where the data file is located. Use the browse button to find and select the desired file.
  • Spatial Reference (ArcGIS Mode Only)—Click the Ellipsis (...) next to this field to open the Spatial Reference Properties dialog box, allowing you to specify the spatial reference being used by the elevation data file.
  • Select Elevation Field—Select the elevation unit.
  • X-Y Units—This menu allows the selection of the measurement unit type associated with the X and Y coordinates of the elevation data file.
  • Z Units—This menu allows the selection of the measurement unit type associated with the Z coordinates of the elevation data file.
  • Clip Dataset to Model—In some cases, the data source contains elevation data for an area that exceeds the dimensions of the area being modeled. When this box is checked, TRex will calculate the model’s bounding box, find the larger dimension (width or height), calculate the Buffering Percentage of that dimension, and increase both the width and height of the model bounding box by that amount. Then any data point that falls outside of the new bounding box will not be used to generate the elevation mesh. If this box isn’t checked, all the source data points are used to generate the elevation mesh. Checking this box should result in faster calculation speed and use less memory.
  • Buffering Percentage—This field is only active when the Clip Dataset to Model box is checked. The percentage entered here is the percentage of the larger dimension (width or height) of the model’s bounding box that will be added to both the bounding box width and height to find the area within which the source data points will be used to build the elevation mesh.
  • Spatial Reference (ArcGIS Mode Only)—Click the Ellipsis (...) next to this field to open the Spatial Reference Properties dialog box, allowing you to specify the spatial reference being used by the HAMMER CONNECT model file.
  • Also update inactive elements—Check this box to include inactive elements in the elevation assignment operation. When this box is unchecked, elements that are marked Inactive will be ignored by TRex.
  • All—When this button is selected, TRex will attempt to assign elevations to all nodes within the HAMMER CONNECT model.
  • Selection—When this button is selected, TRex will attempt to assign elevations to all currently highlighted nodes.
  • Selection Set—When this is selected, the Selection Set menu is activated. When the Selection Set button is selected, TRex will assign elevations to all nodes within the selection set that is specified in this menu.
Note: If the HAMMER CONNECT model (which may or may not have a spatial reference explicitly associated with it) is in a different spatial reference than the DEM/DTM (which does have a spatial reference explicitly associated with it), then the features of the model will be projected from the model’s spatial reference to the spatial reference used by the DEM/DTM.